import type { TableProps } from 'antd';
import { Table } from 'antd';
import React from 'react';

const columns: TableProps<any>['columns'] = [
  {
    title: '名称',
    dataIndex: 'name',
    key: 'name',
  },
  {
    title: '关系',
    dataIndex: 'relationshop',
    key: 'relationshop',
  },
  {
    title: '住址',
    dataIndex: 'address',
    key: 'address',
  },
  {
    title: '处所',
    dataIndex: 'area',
    key: 'area',
  },
  {
    title: '事件',
    dataIndex: 'event',
    key: 'event',
  },
];

const App: React.FC = ({ data }: any) => (
  <Table pagination={false} columns={columns} dataSource={data} />
);

export default App;
